package com.ruoyi.info.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品信息对象 goods_info
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
public class GoodsInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 分类ID */
    @Excel(name = "分类ID")
    private String parentId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsDesc;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal currentPrice;

    /** 库存 */
    @Excel(name = "库存")
    private String stock;

    /** 销量 */
    @Excel(name = "销量")
    private String salesVolume;

    /** 封面图 */
    @Excel(name = "封面图")
    private String coverImg;

    /** 详情图列表 */
    @Excel(name = "详情图列表")
    private String detailImgs;

    /** 状态(0下架,1上架) */
    @Excel(name = "状态(0下架,1上架)")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setGoodsDesc(String goodsDesc) 
    {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsDesc() 
    {
        return goodsDesc;
    }

    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }

    public void setCurrentPrice(BigDecimal currentPrice) 
    {
        this.currentPrice = currentPrice;
    }

    public BigDecimal getCurrentPrice() 
    {
        return currentPrice;
    }

    public void setStock(String stock) 
    {
        this.stock = stock;
    }

    public String getStock() 
    {
        return stock;
    }

    public void setSalesVolume(String salesVolume) 
    {
        this.salesVolume = salesVolume;
    }

    public String getSalesVolume() 
    {
        return salesVolume;
    }

    public void setCoverImg(String coverImg) 
    {
        this.coverImg = coverImg;
    }

    public String getCoverImg() 
    {
        return coverImg;
    }

    public void setDetailImgs(String detailImgs) 
    {
        this.detailImgs = detailImgs;
    }

    public String getDetailImgs() 
    {
        return detailImgs;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("goodsName", getGoodsName())
            .append("goodsDesc", getGoodsDesc())
            .append("originalPrice", getOriginalPrice())
            .append("currentPrice", getCurrentPrice())
            .append("stock", getStock())
            .append("salesVolume", getSalesVolume())
            .append("coverImg", getCoverImg())
            .append("detailImgs", getDetailImgs())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
